package com.jingdianjichi.subject.infra.basic.mapper;

import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 20432
* @description 针对表【subject_info(题目信息)】的数据库操作Mapper
* @createDate 2025-10-03 16:36:37
* @Entity com.jingdianjichi.subject.basic.entity.SubjectInfo
*/
public interface SubjectInfoMapper extends BaseMapper<SubjectInfo> {

    int pageQueryConut(@Param("subjectDifficult") Integer subjectDifficult,
                       @Param("labelId") Long labelId,
                       @Param("categoryId") Long categoryId);

    List<SubjectInfo> pageQuery(@Param("subjectIds") List<Long> subjectIds,
                                @Param("start") int start,
                                @Param("pageSize") int pageSize,
                                @Param("difficult") int difficult);

    void insertMultiple(SubjectInfo subjectInfo);
}




